package win.zxshuo.www.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.BoundValueOperations;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Service;

@Service
public class RedisService {

    @Autowired
    RedisTemplate redisTemplate;

    public void saveObjForKey(String key,String obj){
        BoundValueOperations<String,String> op = redisTemplate.boundValueOps(key);
        op.set(obj);
    }


}
